package com.lin.start.autoconfiguration;

import com.lin.start.FormatTemplate;
import com.lin.start.format.Format;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

@Import(FormatAutoconfiguration.class)
@EnableConfigurationProperties(FormatProperties.class)
@Configuration
public class TemplateAutoconfiguration {

    @Bean
    public FormatTemplate formatTemplate(FormatProperties formatProperties ,Format format){
        return new FormatTemplate(formatProperties,format);
    }

}
